// Notice
//     
// The contents of this file are subject to the
//  same license as the source code for ImageJ.  FracLac is in the public domain.  
// If you use it to publish research, please cite the source.
// The initial developer of the original
// code is Audrey Karperien, Charles Sturt University.
package fraclac.FLAnalyzer;   
    /********************************************************************/
    
/**Stores variables in float arrays for box counting analysis. The variables are initialized
  to new arrays according to the integer variables that is passed to the
  constructor.*/
public class StoreAvgs {

        
            public float[] dfs;// = new float[NumberOfGridPositions];
            public float[] MeanSqrdCVInPixelsPerBoxAtLocation;//         = new float[NumberOfGridPositions];
            public float[] EMeanSqrdCVInPixelsPerBoxAtLocation;// 
            public float[] MeanLacunarity;//
            public float[] EMeanLacunarity;//
            public float[] yintercepts;//  = new float [NumberOfGridPositions];
            public float[] InverseOfPrefactors;//  = new float [NumberOfGridPositions];
            public float [] CVForNumberOfEmptyBoxes;//  = new float[NumberOfGridPositions];
            public float [] CVforCounts;//  = new float[NumberOfGridPositions];
            public float [] binnedCVinProbDensityLacunarity;//  = new float[NumberOfGridPositions];
            public float [] binnedMeanProbDensityLacunarity;//  = new double[NumberOfGridPositions];
            public int [] boxoriginXs;//  = new int[NumberOfGridPositions];
            public int [] boxoriginYs;//  = new int[NumberOfGridPositions];


            /**Constructor makes a new instance with variables initialized using
             *  the passed integer.
             * @param NumberOfSlots int for the number of positions that will be used in the internal
             *  arrays of this class.*/
            public StoreAvgs(int NumberOfSlots) {
            dfs = new float[NumberOfSlots];
            MeanSqrdCVInPixelsPerBoxAtLocation
            = new float[NumberOfSlots]; 
            EMeanSqrdCVInPixelsPerBoxAtLocation
            = new float[NumberOfSlots];
            MeanLacunarity
            = new float[NumberOfSlots];
            EMeanLacunarity
            = new float[NumberOfSlots];
            yintercepts = new float [NumberOfSlots];
            InverseOfPrefactors = new float [NumberOfSlots];
            CVForNumberOfEmptyBoxes = new float[NumberOfSlots];
            CVforCounts = new float[NumberOfSlots];
            binnedCVinProbDensityLacunarity = new float[NumberOfSlots];
            binnedMeanProbDensityLacunarity = new float[NumberOfSlots];
            boxoriginXs = new int[NumberOfSlots];
            boxoriginYs = new int[NumberOfSlots];
            
        }
    }
    
    
    
    
    